<div ms-controller="goods" class="wrapper">
	
	<div class="mod-search cf">
		<div class="fl"  >
			<ul>
				<li>商品名称：<input type="text"  ms-duplex="query.name"
					class="ui-input con" value=""  placeholder="请输入商品名称" >		
					<a class="ui-btn" id="search" ms-click="reloadData" title="查询"><i class="fa fa-search"></i></a>
					<a class="ui-btn" id="resets" ms-click="reset" title="重置查询条件"><i class="fa fa-refresh"></i></a>				
				</li>
			</ul>
			
		</div>
		
		<div class="fr">
			<a class="ui-btn ui-btn-sp mrb" id="add" ms-click="edit(-1)" title="添加" > 
				<i class="fa fa-plus"></i> 
			</a>
			<a class="ui-btn mrb" id="delete" title="删除"><i class="fa red fa-trash-o"></i></a>
		</div>
		
	</div>
	
	<div id="editGoods" style="display: none;">
		 	<form id="goodsForm">
			<table>
				<!--<tr style="margin-bottom: 10px; height: 50px; ">
					<td> id</td>
					<td class="short">
						<input type="text" id="goodsId" name="goodsId" class="text" ms-duplex="goodsInfo.id" />
					</td>
				</tr>-->
				
				<tr style="margin-bottom: 10px; height: 50px; ">
					<td style="color: red;" > uuid*:</td>
					<td class="short">
						<input type="text" id="goodsUuid" name="goodsUuid" class="text" ms-duplex="goodsInfo.uuid" />
					</td>
					
					<td style="color: red; padding: 10px;" > sku*: </td>
					<td class="short">
						<input type="text" id="goodsSku" name="goodsSku" class="text" ms-duplex="goodsInfo.sku" />
					</td>
				</tr>
				
				<!--<tr style="margin-bottom: 10px; height: 50px; ">
					
				</tr>-->
				
				<tr style="margin-bottom: 10px; height: 50px; ">
					<td style="color: red;" > 品名*:</td>
					<td class="short">
						<input type="text" id="goodsName" name="goodsName" class="text" ms-duplex="goodsInfo.name" />
					</td>
					
					<td style="padding: 10px;"> 规格: </td>
					<td class="short">
						<input type="text" id="goodsModel" name="goodsModel" class="text" ms-duplex="goodsInfo.model" />
					</td>
				</tr>
			
				<!--<tr style="margin-bottom: 10px; height: 50px; ">
					
				</tr>-->
				
				<tr style="margin-bottom: 10px; height: 50px;">
					<td> 颜色:</td>
					<td class="short">
						<input type="text" id="goodsColor" name="goodsColor" class="text" ms-duplex="goodsInfo.color" />
					</td>
					
					<!--默认计量单位-->
					<td style="padding: 10px;"> 计量单位:</td>
					<td class="short">
						<!--<input type="text" id="goodsUnit" name="goodsUnit" class="text" ms-duplex="goodsInfo.unit" />-->
						<select name="select" id="goodsUnit" class="text" ms-duplex="goodsInfo.unit">
							<option value="120" >箱</option>
				    	</select>
					</td>
				</tr> 
				<!--默认计量单位-->
				<!--<tr style="margin-bottom: 10px; height: 50px;">
					
				</tr>-->
				
			
				<tr style="margin-bottom: 10px; height: 50px;">
					<td> 单价:</td>
					<td class="short">
						<input type="text" id="goodsPrice" name="goodsPrice" class="text" ms-duplex="goodsInfo.unitPrice" />
					</td>
					
					<td style="padding: 10px;"> 币制:</td>
					<td class="short">
						<input type="text" id="goodsCurrency" name="goodsCurrency" class="text" ms-duplex="goodsInfo.currency" />
					</td>
				</tr>
				
				<!--<tr style="margin-bottom: 10px; height: 50px;">
					
				</tr>-->
				
					
				<tr style="margin-bottom: 10px; height: 50px; ">
					<td> 税率:</td>
					<td class="short">
						<input type="text" id="goodsTaxRate" name="goodsTaxRate" class="text" ms-duplex="goodsInfo.taxRate" />
					</td>
					
					<td style="padding: 10px;"> 商品编码:</td>
					<td class="short">
						<input type="text" id="goodsUpc" name="goodsUpc" class="text" ms-duplex="goodsInfo.upc" />
					</td>
				</tr>
				
					
				<!--<tr style="margin-bottom: 10px; height: 50px; ">
					
				</tr>-->
				
				<tr style="margin-bottom: 10px; height: 50px; ">
					<td> 在库数量:</td>
					<td class="short">
						<input type="text" id="goodsInStockQty" name="goodsInStockQty" class="text" ms-duplex="goodsInfo.inStockQty" />
					</td>
					
					<td style="padding: 10px;"> 包装信息:</td>
					<td class="short">
						<input type="text" id="goodsPackagingInformation" name="goodsPackagingInformation" class="text" ms-duplex="goodsInfo.packagingInformation" />
					</td>
				</tr>
				
				<!--<tr style="margin-bottom: 10px; height: 50px; ">
					
				</tr>-->
				
				<tr style="margin-bottom: 10px; height: 50px; ">
					<td> 类型 :</td>
					<td class="short">
						<!--<input type="text" id="goodsType" name="goodsType" class="text" ms-duplex="goodsInfo.type" />-->
						<select name="select" id="goodsUnit" class="text" ms-duplex="goodsInfo.type" >
							<option value="CP" >成品</option>
							<option value="YL">原料</option>
							<option value="PL" >配料</option>
				   		</select>
					</td>
					
					<td style="padding: 10px;"> 序号:</td>
					<td class="short">
						<input type="text" id="goodsGoodsNo" name="goodsGoodsNo" class="text" ms-duplex="goodsInfo.goodsNo" />
					</td>
				</tr>
				
				<!--<tr style="margin-bottom: 10px; height: 50px; ">
					
				</tr>-->
				
				<tr style="margin-bottom: 10px; height: 50px; ">
					<td> 手册号:</td>
					<td class="short">
						<input type="text" id="goodsHandbookNo" name="goodsHandbookNo" class="text" ms-duplex="goodsInfo.handbookNo" />
					</td>
					
					<td style="padding: 10px;"> 备注:</td>
					<td class="short">
						<input type="text" id="goodsMemo" name="goodsMemo" class="text" ms-duplex="goodsInfo.memo" />
					</td>
				</tr>
				
				<!--<tr style="margin-bottom: 10px; height: 50px; ">
					
				</tr>-->
			</table>
		</form>
		
	</div>


	
	<div class="grid-wrap">
		<table id="grid"></table>
		<div id="page"></div>
	</div>
</div>